<template>
    <div>
    </div>
</template>

<script setup>

let AA = () => console.log("A方法被调用");
let BB = () => console.log("B方法被调用");

// defineExpose 将组件中的方法暴露出去，供父组件调用
defineExpose({
    AA,BB
})
</script>

<style lang="scss" scoped></style>